package com.ticket.sass.common.douyin.openapi.resposne

import com.google.gson.annotations.SerializedName

data class ApiResponse<T : ApiResponseBaseData>(

    var baseResp: BaseResp?,
    var data: T,
    val message: String?,
    val extra: Extra?
) {
    data class BaseResp(
        @SerializedName("StatusCode") val statusCode: Long,
        @SerializedName("StatusMessage") val statusMessage: String
    )

    data class Extra(
        @SerializedName("logid") val logId: String,
        val now: Long,
        @SerializedName("error_code") val errorCode: Int?,
        val description: String?,
        @SerializedName("sub_error_code") val subErrorCode: Int?,
        @SerializedName("sub_description") val subDescription: String?,
    )
}
